﻿@model IEnumerable<BT_Longnv.Models.ProductModel>
@{
    ViewBag.Title = "OderProduct";
    Layout = "~/Views/Shared/BTVN.cshtml";
}

<div class="content-left">
    <div id="tab-container" class="tab-container" data-easytabs="true">
        <div class="divider">
            <span></span>
        </div>
        <div id="general" class="active" style="display: block;">
            <ul class="subNav">
                <li>
                    <p style="padding: 15px 0 15px 30px; font: bold 13px arial" title=""><span class="glyph"></span>Đặt hàng theo @Model.FirstOrDefault().CategoryName</p>
                    <ul>
                        @foreach (var item in Model)
                        {
                            <li><a href="@Url.Action("OderDetail", new { pro = item.ProductId })" title="">@item.ProductName</a></li>
                        }
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>

<div class="content-right">
    <div class="widget">
        <div class="whead">
            <h6>Đặt hàng theo sản phẩm khác</h6>
            <div class="clear"></div>
        </div>

        <div class="box-pro-home">
            @foreach (var item in ViewBag.Other)
            {
                <div class="item-pro-home">
                    <div class="item-pro-home-image">
                        <a href="@Url.Action("OderDetail", new { pro = item.ProductId })" >
                            <img src="@item.Piture" /></a>
                    </div>
                    <a href="@Url.Action("OderDetail", new { pro = item.ProductId })" >@item.ProductName</a>
                    <p>@item.UnitPrice</p>
                </div>
            }
        </div>

    </div>
</div>
